package com.crm.api;

import com.crm.api.fallback.UserServiceFallBack;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "crm-user",fallback = UserServiceFallBack.class)
public interface UserService {


    @RequestMapping(value = "/user/info", method = RequestMethod.GET)
    Object getUserInfo();

    @RequestMapping(value = "/user/getInfo",method = RequestMethod.GET)
    Object getUserInfoById(@RequestParam(value = "id")Long Id);

}
